<%@ page language="java" isELIgnored="false" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<jsp:directive.include file="/WEB-INF/sitemesh-decorators/include.jsp"/>
<fmt:setBundle basename="bundles.application-resources"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<%@taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
    <head>
        <title><fmt:message key="application.title"/></title>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/includes/css/base.css" type="text/css"/>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
				<script type="text/javascript" src="${pageContext.request.contextPath}/includes/js/jquery.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/includes/js/jquery.validate.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/resources/dojo/dojo.js" djconfig="parseOnLoad: true" ></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/resources/spring/Spring.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/resources/spring/Spring-Dojo.js"></script>
		<script type="text/javascript">dojo.require("dojo.parser");</script>

<script>
	$(document).ready(function() {
		var url = window.location.pathname;
		var names = url.split('/');
		labolg = names[names.length-3];
		if (labolg){
			$('#'+labolg+"_sub").show();
			$('#nav > ul > li').removeClass('nav_selected');
			$('#'+labolg).addClass('nav_selected');
		}
		$('.firstLayer').click(function(){
			$('#nav div ul').hide();
			
			var id = $(this).attr('id');
			
			setCookie('labolg',id,1);
		});
		$('.advForm').hide();
		$('.advForm').find('.thesis').show();
		$('.advForm').find('.facResearch').hide();
		
		$('.advSearch').click(function(){
			$('.advForm > div').hide();
			if($(this).hasClass('thesis')){
				$('.advForm .thesis').show();
			}else{
				$('.advForm .facResearch').show();
			}
		});
		
		$('#advancedSearch').click(function(){
			if($('.advForm').css('display') == 'none'){
				$('.advForm').show();
			}else{
				$('.advForm').hide();
			}
		});
		
		$('#goButton').click(function(){
				window.location.href = "index.html";
		});
	});
</script>
			
		<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.gif" />
		<decorator:head />
		<style>
#mainFeature{
	padding: 30px;
	border: 1px solid grey;
}
#table .header,#table .row{
	display: table-row;
}
#table .header div{
	background-color: grey;
	color: white;
}
#table .header div,#table .row div{
	display: table-cell;
	padding: 0px 13px;
	border-left: 1px solid grey;
	border-bottom: 1px solid grey;
}
#table .row:nth-child(odd){
	background-color: #D8D8D8;
}
#table .row div:last-child{
	border-right: 1px solid grey;
}
#mainBody #body > div{
	display: inline-block;
}
#body .cats{
	width: 100px;
	margin-right: 10px;
	border-right: 1px solid grey;
	vertical-align: top;
	margin:0 10px 0 0;
}
#body .cats > div{
	padding: 5px;
}
</style>
    </head>
	<body class="tundra spring">
		<!-- <div id="wrapper"> -->
			<div id="container">
			<jsp:include page="/WEB-INF/sitemesh-common/adminHeader.jsp" />   
			<!-- <div id="contentwrapper"> -->      
				<% if (((HttpServletRequest)pageContext.getRequest()).getServletPath().equals("/index.jsp")){ %>
		        <jsp:include page="/WEB-INF/sitemesh-common/dashboard.jsp" />
				<% }else{ %>
				<decorator:body />
				<% } %>
				<div class="hidden">&nbsp;</div>     
			<!-- </div> --><!-- end contentwrapper -->   
			<jsp:include page="/WEB-INF/sitemesh-common/footer.jsp" />
			</div>
		<!-- </div> --><!-- end wrapper -->
	</body>
</html>



